/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 *  \file     SpiSLvSlave_Fault.h                                                                               *
 *  \brief    This file contains interface header for SPI Fault injection.                              *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/08/15     <td>1.0.0                                                                     *
 * </table>                                                                                             *
 *******************************************************************************************************/

#ifndef SPI_SLV_FAULT_H
#define SPI_SLV_FAULT_H

#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************************************************
 *                                 Global Macro definition                                              *
 *******************************************************************************************************/
/** \brief  SPI fault injection switch */
#if !defined(SPI_SLV_FAULT_INJECTION)
#define SPI_SLV_FAULT_INJECTION                                              (STD_OFF)
#endif /** #if !defined(SPI_SLV_FAULT_INJECTION) */

#if (SPI_SLV_FAULT_INJECTION == STD_OFF)
/*PRQA S 0791 EOF*/
/** \brief  FUNCTION:SpiSLv_Ip_Init() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Ip_Init()
/** \brief  FUNCTION:SpiSLv_Ip_DmaHandle() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Ip_DmaHandleDmaStatusErr()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Ip_ConfigDmaChannel() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Ip_ConfigDmaChannelErr()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Dma_Disable() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Dma_Disable()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Uns_Disable() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Uns_Disable()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Synctrans_callout() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Synctrans_callout()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Ip_ovrudrErr() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Ip_ovrudrErr()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_OpsChk_Err() fault injection. */
#define SpiSLvFaultInj_SpiSLv_OpsChk_Err()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_BusyChk_Err() fault injection. */
#define SpiSLvFaultInj_SpiSLv_BusyChk_Err()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_BusChk_Err() fault injection. */
#define SpiSLvFaultInj_SpiSLv_BusChk_Err()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_BusyChk_Err_end() fault injection. */
#define SpiSLvFaultInj_SpiSLv_BusyChk_Err_end()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_DmaLenth_Err() fault injection. */
#define SpiSLvFaultInj_SpiSLv_DmaLenth_Err()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_ops_Err() fault injection. */
#define SpiSLvFaultInj_SpiSLv_ops_Err()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Dma_Init_Err() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Dma_Init_Err()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Dma_Init_Err() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Dma_Align_Err()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_timeoutchk() fault injection. */
#define SpiSLvFaultInj_SpiSLv_timeoutchk()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_baudratechk() fault injection. */
#define SpiSLvFaultInj_SpiSLv_baudratechk()
/** \brief  FUNCTION:SpiSLvFaultInj_SpiSLv_Paritychk() fault injection. */
#define SpiSLvFaultInj_SpiSLv_Paritychk()

#else
#include "SpiSLv_UserFault.h"
#endif /* #if (SPI_SLV_FAULT_INJECTION == STD_OFF) */

#ifdef __cplusplus
}
#endif

#endif /* SPI_SLV_FAULT_H */
/* End of file */
